package org.example.controller;

import org.example.entity.TbPost;
import org.example.service.ITbPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("tb-post")
public class TyPostController {
    @Autowired
    ITbPostService iTbPostService;

    /**
     * 岗位列表
     * @return
     */
    @RequestMapping("postList")
    public List<TbPost> postList(){
        final List<TbPost> list = iTbPostService.list();
        return list;
    }
}
